package com.sqin.taskflow.tasks;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.flowable.common.engine.api.FlowableException;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;


@Slf4j
@Data
public class FailedTask implements JavaDelegate {
    //定义一些属性，流程中可以指定这些属性信息值


    @Override
    public void execute(DelegateExecution execution) {
        log.info("task execute failed");
        throw new FlowableException("found error");
    }
}
